#!/bin/bash
add()
{
  sum=$[$1+$2]
  return $sum
}

read -p "请输入一个数字" n1
read -p "再输入一个数字" n2
add $n1 $n2
echo "结果是"$?

